<?php
class Order extends AppModel {

	var $name = 'Order';
	var $validate = array(
		'ordertype_id' => array('numeric'),
		'number' => array('notempty'),
		'date' => array('notempty'),
	);

	//The Associations below have been created with all possible keys, those that are not needed can be removed
	var $belongsTo = array(
		'Ordertype' => array(
			'className' => 'Ordertype',
			'foreignKey' => 'ordertype_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Student' => array(
			'className' => 'Student',
			'foreignKey' => 'student_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);


}
?>